package top.dancun.easuser.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import top.dancun.easuser.entity.MenuEntity;

import java.util.List;

/**
 * 
 * 
 * @author dancun
 * @email message@dancun.top
 * @date 2022-09-05 22:15:48
 */
@Mapper
public interface MenuDao extends BaseMapper<MenuEntity> {

    /**
     * 根据父菜单，查询子菜单
     * @param parentId 父菜单ID
     */
    List<MenuEntity> queryListParentId(Long parentId);

    /**
     * 获取不包含按钮的菜单列表
     */
    List<MenuEntity> queryNotButtonList();

    List<Long> queryUserAllMenuId(String userId);
}
